package com.st.controller;

import com.st.base.BaseResult;
import com.st.pojo.FlowerUser;
import com.st.service.FlowerUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@Tag(name="花语",description = "这是一个包含了所有花语的类")
@RequestMapping(path = "user")
public class FlowerUserController {

    @Resource
    private FlowerUserService flowerUserService;

    @Operation(hidden = true)
    @RequestMapping(path = "getFlowerUser",method = RequestMethod.GET)
    public BaseResult getFlowerUser(@RequestParam(name = "id",required = false,defaultValue = "1")Integer id){
        FlowerUser byId = flowerUserService.getById(id);
        return BaseResult.ok(byId);
    }

}
